package com.adds.lvds.dao.impl.organize;

import java.util.List;
import java.util.Map;

import com.adds.lvds.model.organize.SysUserPermission;

public interface SysUserPermissionMapper {
	/**
	 * 根据map获取相应权限
	 * 
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public List<SysUserPermission> findSysUserPermissionByMap(Map<String, Object> map) throws Exception;
	/**
	 * 录入用户应用关系数据
	 * @param sysUserPermission
	 * @throws Exception
	 */
	public void insertSysUserPermission(SysUserPermission sysUserPermission)throws Exception;
	/**
	 * 根据user_id删除用户权限
	 * @param user_id
	 * @throws Exception
	 */
	public void deletePermissionByUserId(Integer user_id)throws Exception;
	/**
	 * 根据user_id批量删除用户权限
	 * @param ids
	 * @throws Exception
	 */
	public void batchPermissionByUserId(String[] ids)throws Exception;
	
}
